﻿using System;
using System.Collections.Generic;
using System.Text;

namespace KSWSClient.Code.Model
{
    public class ConfigModel
    {
        private string _ServerHost;

        public string ServerHost
        {
            get { return _ServerHost; }
            set { _ServerHost = value; }
        }
        private string _ServerPort;

        public string ServerPort
        {
            get { return _ServerPort; }
            set { _ServerPort = value; }
        }
        private string _ContextPath;

        public string ContextPath
        {
            get { return _ContextPath; }
            set { _ContextPath = value; }
        }
        private string _UserName;

        public string UserName
        {
            get { return _UserName; }
            set { _UserName = value; }
        }
        private string _Password;

        public string Password
        {
            get { return _Password; }
            set { _Password = value; }
        }

        public string SMWS_URL
        {
            // 获取SM的WSDL的地址
            get
            {
                string resultURL = String.Empty;
                resultURL = @"http://"
                    + this._ServerHost
                    + ":" + this._ServerPort
                    + "/" + this._ContextPath
                    + "/";
                return resultURL;
            }
        }
    }
}
